﻿<?php include("conn.php");
  mysql_query('SET NAMES UTF8'); 

	  
class MyPrizeBean
{
	// public $rets;
	// public $userid;

	function __construct($rets,$userid)
	{
		$this->rets   = $rets;
		$this->userid = $userid;
	}
}


$rert31=mysql_query("select * from user where  phone =".$_REQUEST[phone]);
$rowf1=mysql_fetch_array($rert31);

if($rowf1!=false){
		   $srat=mysql_query("update user set password='".$_REQUEST[pass]."' where phone=".$_REQUEST[phone]);
		   $row=100;
}else{
		$row=200;
}

$prize = array();
     
$prize[] = new MyPrizeBean($row,$rowf1[userid]);

// $MyPrizeBean = new MyPrizeBean();

echo json_encode($prize);
?>